
var tt = setInterval(function(){
    var s = document.querySelector("#hour");
    var f = document.querySelector("#minute");
    var m = document.querySelector("#secund");
    var time = new Date();/*当前时间*/
    var time1 = new Date('2019-09-06');/*截止日期*/
    var zj = time1.getTime() - time.getTime();

    var m1 = Math.floor(zj / 1000 / 60 / 60 % 24);
    var m2 = Math.floor(zj / 1000 / 60 % 60);
    var m3 = Math.floor(zj / 1000 % 60);

    if (m1 < 10){
        m1 = '0' + m1;
    }
    if (m2 < 10){
        m2 = '0' + m2;
    }
    if (m3 < 10){
        m3 = '0' + m3;
    }

    s.innerHTML = m1;
    f.innerHTML = m2;
    m.innerHTML = m3;
});



